//
//  ViewController.m
//  changeEffectiveArea
//
//  Created by chenleping on 2018/9/3.
//  Copyright © 2018年 DSY. All rights reserved.
//

#import "ViewController.h"

#import "UIButton+changeEffectiveArea.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    
    UIButton * redBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    redBtn.backgroundColor = [UIColor redColor];
    [self.view addSubview:redBtn];
    redBtn.frame = CGRectMake(100, 100, 50, 50);
    redBtn.clickArea = @"2";
    [redBtn addTarget:self action:@selector(clickBtn ) forControlEvents:UIControlEventTouchUpInside];
}

- (void)clickBtn{
    NSLog(@"被点击了...");
}





@end
